package com.leaf.lowcode.utils.jsontobean;

import java.lang.reflect.Field;

public class DoulbeToTransfer<T>implements ToTranfer<T> {
    @Override
    public Object laod(Field field, Object o, T cls) {
        double o1 = Double.parseDouble(o.toString());
     //   System.out.println("o1" + o);
        try {
            field.setAccessible(true);
            field.set(cls, o1);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return cls;
    }
}
